<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.hrms.pojo.Department"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>员工信息修改</title>
<script type="text/javascript" src="<%=path%>/jquery-3.1.1.min.js"></script>
<script type="text/javascript">
	function checkinput() {
		var emAge = $("#emAge").val();
		if (isNaN(emAge) == true) {
			alert("请输入数字");
			return false;
		}
		var emIdNumber = $("#emIdNumber").val();
		var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
		if (reg.test(emIdNumber) === false) {
			alert("请输入15位或18位的身份证号码");
			return false;
		}
		return true;
	}
</script>
</head>
<body background="<%=path%>/images/background.jpg">
	<center>
		<jsp:include page="../top.jsp" flush="true"></jsp:include>
		<table width="800" height="48" border="0" cellpadding="0"
			cellspacing="0" background="<%=path%>/images/center1.jpg">
			<tr>
				<td valign="top">
					<table width="494">
						<tr>
							<td width="45" height="25"></td>
							<td width="437" valign="bottom"><a
								href="<%=path%>/admin/function"><b>主页</b></a>&gt;<a
								href="<%=path%>/emp/emp_f"><b>员工管理</b></a>&gt;<a
								href="<%=path%>/emp/limit?showPage=1"><b>员工信息列表</b></a>&gt;<font 
								color="#FF0000">修改员工信息</font></td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<table width="800" height="340" border="0" align="center"
			cellpadding="0" cellspacing="0"
			background="<%=path%>/images/center2.jpg">
			<tr>
				<td>
					<form
						action="<%=path%>/emp/<%=request.getParameter("emId")%>/alter"
						method="post">
						<table width="800" height="340" border="0" cellpadding="0"
							cellspacing="0" background="<%=path%>/images/center2.jpg">
							<tr>
								<td class="style4" height="40"><div align="center">姓名:</div></td>
								<td><input height="40" width="600" type="text"
									name="emName" id="emName"></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">性别:</div></td>
								<td><select name="emSex">
										<option value="男">男</option>
										<option value="女">女</option>
								</select></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">年龄:</div></td>
								<td><input height="40" width="600" type="text" name="emAge"
									size="3" id="emAge"></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">身份证号:</div></td>
								<td><input height="40" width="600" type="text"
									name="emIdNumber" id="emIdNumber"></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">出生日期:</div></td>
								<td><input height="40" width="600" type="text"
									name="emBorn"><span style="font-size: 12px">格式：yyyy-MM-dd</span></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">民族:</div></td>
								<td><input height="40" width="600" type="text"
									name="emNation"></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">婚姻状况:</div></td>
								<td><select name="emMarriage">
										<option value="1">已婚</option>
										<option value="0">未婚</option>
								</select></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">政治面貌:</div></td>
								<td><select name="emVisage">
										<option value="党员">党员</option>
										<option value="共青团">共青团</option>
										<option value="群众">群众</option>
								</select></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">籍贯:</div></td>
								<td><input height="40" width="600" type="text"
									name="emNativePlace"></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">电话:</div></td>
								<td><input height="40" width="600" type="text" name="emTel"></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">地址:</div></td>
								<td><input height="40" width="600" type="text"
									name="emAddress"></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">毕业学校:</div></td>
								<td><input height="40" width="600" type="text"
									name="emGraduateSchool"></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">专业:</div></td>
								<td><input height="40" width="600" type="text"
									name="emSpecialty"></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">学历:</div></td>
								<td><select name="emEducation">
										<option value="本科">本科</option>
										<option value="专科">专科</option>
										<option value="博士">博士</option>
										<option value="硕士">硕士</option>
								</select></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">工种:</div></td>
								<td><input height="40" width="600" type="text"
									name="emTypework"></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">登记时间:</div></td>
								<td><input height="40" width="600" type="text"
									name="emCreatetime"><span style="font-size: 12px">格式：yyyy-MM-dd</span></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">登记人:</div></td>
								<td><input height="40" width="600" type="text"
									name="emCreatename"></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">备注:</div></td>
								<td><textarea name="emBz" cols="22" rows="4"></textarea></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">所属部门:</div></td>
								<td><select name="emDtId">
										<%
											Object obj = request.getAttribute("departList");
											if (obj != null) {
												List<Department> departList = (List<Department>) obj;
												for (Department depart : departList) {
										%>
										<option value="<%=depart.getDtId()%>"><%=depart.getDtName()%></option>
										<%
											}
											}
										%>
								</select></td>
							</tr>
							<tr>
								<td class="style4" height="40"><div align="center">操作</div></td>
								<td><input type="submit" value="提交">&nbsp;<input
									type="reset" value="重置"></td>
							</tr>
						</table>
					</form>
				</td>
			</tr>
		</table>
		<jsp:include page="../down.jsp" flush="true" />
	</center>
</body>
</html>